package com.itkaien.anno.datasourceDemomybatis;

import com.itkaien.springzh.Mybatis.mapper.UserMapper;
import com.itkaien.springzh.Mybatis.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceDemo {

    @Autowired
    UserMapper userMapper;
    public void test(){

        List<User> all = userMapper.findAll();
        System.out.println(all);


    }

}
